package com.rental.quickenPoint.client;

import ch.qos.logback.core.spi.ConfigurationEvent;
import com.rental.common.result.AjaxResult;
import com.rental.model.entity.UserAccount;
import com.rental.model.entity.user.UserInfo;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@FeignClient(name = "charge-server")
public interface UserAccountClient {

    @GetMapping("/user-account/getUserAccount")
    public AjaxResult<Integer> getUserAccount(@RequestParam Long userId);

    @GetMapping("/user-account/invite")
    public AjaxResult<Boolean> invite(@RequestParam ArrayList<Long> list, @RequestParam Long userId);

    @GetMapping("/user-account/initUserAccount")
    public AjaxResult<Boolean> initUserAccount(@RequestParam Long userId);

    @PostMapping("/user-account/payMoney")
    public AjaxResult<String> payMoney(@RequestBody UserAccount userAccount);

    @GetMapping("/user-account/sendAccelerateValueByAddInfo")
    public AjaxResult<Boolean> sendAccelerateValueByAddInfo(@RequestParam Long userId);
}
